<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button onclick="openRoom(1)">房间1</button>
<button onclick="openRoom(2)">房间2</button>
<button onclick="openRoom(3)">房间3</button>
<script>
    function openRoom(roomId) {
        window.open("http://swoole.phpyd.com/client.php?room="+roomId);
    }
</script>

</body>
</html>